<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php if (count($l_meta_name)): ?>
	    <?php foreach ($l_meta_name as $key => $value): ?>
		<meta name="<?php echo $key; ?>" content="<?php echo $value; ?>"/>
	    <?php endforeach; ?>
	<?php endif; ?>
	<?php if (count($l_meta_http_equiv)): ?>
	    <?php foreach ($l_meta_http_equiv as $key => $value): ?>
		<meta http-equiv="<?php echo $key; ?>" content="<?php echo $value; ?>"/>
	    <?php endforeach; ?>
	<?php endif; ?>
        <title><?php echo $l_title; ?></title>
        <script type="text/javascript">
<?php
if (count($l_javascript_variables)) {
    foreach ($l_javascript_variables as $key => $value) {
	echo "window.{$key} = '{$value}';";
    }
}
?>
        </script>
	<?php if (count($l_javascripts)): ?>
	    <?php foreach ($l_javascripts as $js): ?>
		<?php if (preg_match("/^http:\/\//", $js)): ?>
	    	<script type="text/javascript" rel="" src="<?php echo $js; ?>.js"></script>
		<?php else: ?>
	    	<script type="text/javascript" rel="" src="/assets/js/<?php echo $js; ?>.js"></script>
		<?php endif; ?>
	    <?php endforeach; ?>
	<?php endif; ?>

	<?php if (count($l_stylesheets)): ?>
	    <?php foreach ($l_stylesheets as $css): ?>
		<link type="text/css" rel="stylesheet" href="/assets/css/<?php echo $css; ?>.css"/>
	    <?php endforeach; ?>
	<?php endif; ?>

	<?php if ($g_lang == 'en'): ?>
    	<style type="text/css">
    	    .header li ul.project{height:135px;}
            .bottom-content .member select{width:190px;}
    	</style>
	<?php endif; ?>
    </head>

    <body>
        <div id="z-body-container">
            <div class="header">
                <a href="/" class="logo">
		    <img src="/assets/img/logo.jpg" width="149" height="30"/>
		</a>
		<a target="_blank" href="http://www.jocoscape.com/index.php" class="design">筑奥设计</a>
                <a href="/frontend/language?lang=<?php echo $g_lang == 'en' ? 'zh' : 'en'; ?>" class="english">
		    <?php echo $this->lang->line('lang'); ?>
		</a>
                <ul>
                    <li><a href="/"><?php echo $this->lang->line('home'); ?></a></li>
                    <li>
                        <a href="/entry/show/<?php echo TYPE_PROFILE; ?>"><?php echo $this->lang->line('about'); ?></a>
                        <div class="about left-sub-menu">
                            <ul>
                                <li><a href="/entry/show/<?php echo TYPE_PROFILE; ?>"><?php echo $this->lang->line('profile'); ?></a></li>
                                <li><a href="/entry/show/<?php echo TYPE_TEAM; ?>"><?php echo $this->lang->line('team'); ?></a></li>
                                <li><a href="/entry/show/<?php echo TYPE_HONOR; ?>"><?php echo $this->lang->line('honor'); ?></a></li>
                            </ul>
                            <div>
                                <img src="/assets/uploads/setting/menu-about.jpg" alt=""/>
                                <p><?php echo nl2br($g_lang == 'en'?$about->en:$about->zh);?></p>
                            </div>
                        </div>
                    </li>
                    <li>
                        <a href="/entry/index/<?php echo TYPE_LANDED_PROPERTY; ?>"><?php echo $this->lang->line('projects'); ?></a>
                        <ul class="project left-sub-menu">
                            <li class="first">
                                <a href="/entry/index/<?php echo TYPE_LANDED_PROPERTY; ?>" class="top"><img src="/assets/uploads/setting/sum-menu-real_estate_landscape.jpg"/></a>
                                <a href="/entry/index/<?php echo TYPE_LANDED_PROPERTY; ?>" class="bottom"><?php echo $this->lang->line('real_estate_landscape'); ?></a>
                            </li>
                            <li>
                                <a href="/entry/index/<?php echo TYPE_CITY; ?>" class="top"><img src="/assets/uploads/setting/sum-menu-city_comprehensive_projects.jpg"/></a>
                                <a href="/entry/index/<?php echo TYPE_CITY; ?>" class="bottom"><?php echo $this->lang->line('city_comprehensive_projects'); ?></a>
                            </li>
                            <li>
                                <a href="/entry/index/<?php echo TYPE_ROAD; ?>" class="top"><img src="/assets/uploads/setting/sub-menu-municipal_road.jpg"/></a>
                                <a href="/entry/index/<?php echo TYPE_ROAD; ?>" class="bottom"><?php echo $this->lang->line('municipal_road'); ?></a>
                            </li>
                            <li>
                                <a href="/entry/index/<?php echo TYPE_LIGHT; ?>" class="top"><img src="/assets/uploads/setting/sub-menu-lighting_projects.jpg"/></a>
                                <a href="/entry/index/<?php echo TYPE_LIGHT; ?>" class="bottom"><?php echo $this->lang->line('lighting_projects'); ?></a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="/entry/show/<?php echo TYPE_ACHIEVEMENT; ?>"><?php echo $this->lang->line('strength'); ?></a>
                        <div class="strength left-sub-menu">
                            <ul>
                                <li><a href="/entry/show/<?php echo TYPE_ACHIEVEMENT; ?>"><?php echo $this->lang->line('achievements'); ?></a></li>
                                <li><a href="/entry/show/<?php echo TYPE_PARTER; ?>"><?php echo $this->lang->line('client'); ?></a></li>
                            </ul>
                            <div>
                                <img src="/assets/uploads/setting/menu-strength.jpg" alt=""/>
                                <p><?php echo nl2br($g_lang == 'en'?$strength->en:$strength->zh);?></p>
                            </div>
                        </div>
                    </li>
                    <li>
                        <a href="/entry/index/<?php echo TYPE_JOCO_TRENDS; ?>"><?php echo $this->lang->line('news'); ?></a>
                        <div class="trends right-sub-menu">
                            <ul>
                                <li><a href="/entry/index/<?php echo TYPE_JOCO_TRENDS; ?>"><?php echo $this->lang->line('company_news'); ?></a></li>
                                <li><a href="/entry/index/<?php echo TYPE_INDUSTRY_TRENDS; ?>"><?php echo $this->lang->line('industry_news'); ?></a></li>
                            </ul>
			    <?php if (isset($g_company_news)): ?>
    			    <p>
    				<b class="triangle"></b>
    				<span class="date"><?php echo date('Y-m-d', strtotime($g_company_news->created_at)); ?></span>
    				<a href="/entry/show/<?php echo TYPE_JOCO_TRENDS . '/' .$g_company_news->id ; ?>">
					<?php echo $g_company_news->title; ?>
    				</a>
    			    </p>
			    <?php endif; ?>
			    <?php if (isset($g_industry_news)): ?>
    			    <p>
    				<b class="triangle"></b>
    				<span class="date"><?php echo date('Y-m-d', strtotime($g_industry_news->created_at)); ?></span>
    				<a href="/entry/show/<?php echo TYPE_INDUSTRY_TRENDS . '/' . $g_industry_news->id; ?>">
					<?php echo $g_industry_news->title; ?>
    				</a>
    			    </p>
			    <?php endif; ?>
                        </div>
                    </li>
                    <li>
                        <a href="/entry/show/<?php echo TYPE_IDEA; ?>"><?php echo $this->lang->line('culture'); ?></a>
                        <div class="culture right-sub-menu">
                            <ul>
                                <li><a href="/entry/show/<?php echo TYPE_IDEA; ?>"><?php echo $this->lang->line('concept'); ?></a></li>
                                <li><a href="/entry/index/<?php echo TYPE_PUBLICATION; ?>"><?php echo $this->lang->line('magazine'); ?></a></li>
				<li><a href="/entry/show/<?php echo TYPE_DEVELOPMENT_HISTORY; ?>"><?php echo $this->lang->line('development_history'); ?></a></li>
                            </ul>
                            <div>
                                <img src="/assets/uploads/setting/menu-culture.jpg" alt=""/>
                                <p><?php echo nl2br($g_lang == 'en'?$culture->en:$culture->zh);?></p>
                            </div>
                        </div>
                    </li>
                    <li>
                        <a href="/entry/show/<?php echo TYPE_IN_HERE; ?>"><?php echo $this->lang->line('hr'); ?></a>
                        <div class="talent right-sub-menu">
                            <ul>
                                <li><a href="/entry/show/<?php echo TYPE_IN_HERE; ?>"><?php echo $this->lang->line('personnel_idea'); ?></a></li>
                                <li><a href="/jobs"><?php echo $this->lang->line('jobs'); ?></a></li>
                            </ul>
                            <div>
                                <img src="/assets/uploads/setting/menu-HR.jpg" alt="HR"/>
                                <p><?php echo nl2br($g_lang == 'en'?$hr->en:$hr->zh);?></p>
                            </div>
                        </div>
                    </li>
                    <li><a href="http://irm.p5w.net/gszz/"><?php echo $this->lang->line('investors'); ?></a></li>
                    <li>
                        <a href="/entry/show/<?php echo TYPE_CONTACT; ?>"><?php echo $this->lang->line('contact'); ?></a>
                        <div class="contact right-sub-menu">
                            <ul>
                                <li><a href="/entry/show/<?php echo TYPE_CONTACT; ?>"><?php echo $this->lang->line('contact_us'); ?></a></li>
                                <li><a href="/entry/message"><?php echo $this->lang->line('feedback'); ?></a></li>
                            </ul>
                            <div>
                                <img src="/assets/uploads/setting/menu-contact.jpg" alt=""/>
                                <p><?php echo nl2br($g_lang == 'en'?$contact->en:$contact->zh);?></p>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>

	    <?php require file_exists($path = FCPATH . 'application/views/' . $l_template . '.php') ? $path : 'error.php'; ?>

        </div>
    </body>
</html>
